/* fmManageDatabase.java 
* Created on Jan 16, 2013 
* Author:Mr.Viet
* Phone: 01683430426
* Email: phamvanvietcdhd@gmail.com
*/ 
package ServerAdmin; 

import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;

import net.miginfocom.swing.MigLayout;

public class fmMDTab extends JPanel {
	private JTextField txt;
	private JButton btnSearch,btnAdd,btnEdit,btnDel;
	private JTable table;
	public fmMDTab() {
		this.setLayout(new MigLayout());
		//Khoi tao
		this.txt = new JTextField(20);
		this.btnSearch = new JButton("SEARCH");
		this.btnAdd = new JButton("Add New");
		this.btnEdit = new JButton("Edit");
		this.btnDel = new JButton("Delete");
		this.table = new JTable();
		//Them vao Jpanel
		JPanel p = new JPanel();
		p.setLayout(new MigLayout());
		p.add(this.txt,"bottom");
		p.add(this.btnSearch,"wrap");
		
		JPanel p1 = new JPanel();
		p1.setLayout(new MigLayout());
		p1.add(this.btnAdd,"center");
		p1.add(this.btnEdit,"center");
		p1.add(this.btnDel,"center");
		
		this.add(p,"right");
		this.add(new JLabel(""),"wrap");
		this.add(this.table,"wrap");
		this.table.setMinimumSize(new Dimension(700,400));
		this.add(p1,"center");
	}
}
